<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<title>My JSP 'login.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<meta name="renderer" content="webkit">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<link rel="stylesheet" href="<%=basePath%>res/css/main.css">
<link rel="stylesheet" href="<%=basePath%>res/css/lrtk.css">
<link rel="stylesheet" href="<%=basePath%>res/css/search.css">
<script src="<%=basePath%>res/js/jquery.js"></script>
<script src="<%=basePath%>res/js/jdt.js"></script>
<style type="text/css">
html {
	overflow-y: hidden;
}
</style>

</head>
<body>
	<div class="login">
		<form action="goodspublish.action" method="post"
			enctype="multipart/form-data" id="publishform"
			style="text-align:left; ">
			<div class="uname">
				<span class="logintxt" style="width:45px;">商品名</span> <input
					type="text" name="goods.goodsName" id="goods.goodsName">
			</div>
			<div class="uname">
				<span class="logintxt" style="width:45px;">类别</span> <input
					type="text" name="goods.goodsCategory" id="goods.goodsCategory">
			</div>
			<div class="uname">
				<span class="logintxt" style="width:45px;">价格</span> <input
					type="text" name="goods.goodsPrice" id="goods.goodsPrice">
			</div>
			<div class="uname">
				<span class="logintxt" style="width:45px;">商品所在地</span> <input
					type="text" name="goods.goodsAddress" id="goods.goodsAddress">
			</div>
			<div class="uname">
				<span class="logintxt" style="width:45px;">商品描述</span> <input
					type="text" name="goods.goodsDescription"
					id="goods.goodsDescription">
			</div>
			<div class="uname">
				<input type="file" name="image" multiple><br /> <input
					type="submit" value="上传" />

			</div>
			<!-- <div class="uname">
				<input class="loginbutton" type="submit" value="提交">
			</div> -->
		</form>
		<%-- <div class="uname">
			<input class="loginbutton" type="submit" value="提交"
				onclick="fileVerity();">
			<script type="text/javascript">
				function fileVerity() {

				form = document.getElementById('publishform');
					if (document.getElementById('image').value.length == 0) {
						alert('请选择至少一张商品图片上转！');
						return;
					} else {
					form.submit();
					}
				}
			</script>
		</div> --%>
	</div>
</body>
</html>
